﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var cols = [
	{col:{header:'*账号', width:100, sortable:true, editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.TriggerField({
			maxLength:20,
			editable:false, allowBlank:false,
			triggerClass:'x-form-search-trigger', 
			onTriggerClick: function() {
				var selcfg = {pageType:'combogrid', nodeId:'sys_user', layoutPage:'/public/layout/layout_tree.js', sourceField:';', targetField:';', whereSql:"not exists (select * from pm_user Where pm_user.user_code = sys_user.user_code and pm_user.user_code > ' ')", whereValue:'', whereType:'', isSame:'1', isShowData:'1', isMoreSelect:'0',isReadonly:'1',queryField:'',likeType:'',fieldName:'pm_user.user_code'};
				JxSelect.createSelectWin(selcfg, this, 'node_pm_user_editgrid');
			}
		})}, field:{name:'pm_user__user_code',type:'string'}},
	{col:{header:'姓名', width:100, sortable:true}, field:{name:'sys_user__user_name',type:'string'}},
	{col:{header:'部门名称', width:100, sortable:true, editable:false,
		editor:new Ext.form.TextField({
			maxLength:1000
		})}, field:{name:'sys_dept__dept_name',type:'string'}},
	{col:{header:'*cas用户账号', width:100, sortable:true, editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.TextField({
			maxLength:50, allowBlank:false
		})}, field:{name:'pm_user__cas_user_code',type:'string'}},
	{col:{header:'*cas用户名称', width:100, sortable:true, editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.TextField({
			maxLength:50, allowBlank:false
		})}, field:{name:'pm_user__cas_user_name',type:'string'}},
	{col:{header:'用户ID', width:100, sortable:true, hidden:true}, field:{name:'pm_user__user_id',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'pm_user__pm_user_id',type:'string'}},
	{col:{header:'*cas用户ID(内码)', width:100, sortable:true, editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.TextField({
			maxLength:50, allowBlank:false
		})}, field:{name:'pm_user__cas_user_id',type:'string'}},
	{col:{header:'部门ID', width:100, sortable:true, hidden:true}, field:{name:'pm_user__dept_id',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '1',
		isshow: '1',
		funid: 'pm_user'
	};
	
	
	
		
	return new Jxstar.GridNode(config);
}